<?php

namespace Yzadmin\Controller;
use Think\Controller;
class SiteController extends CkController
{

   //系统设置首页 
   public function index()
   { 
     $data['cate']=M("Cate")->where("look=0")->order("sort asc,id asc")->select();
     $data['title']="分类管理";
     $this->assign($data);
     $this->display();
   }    
   
   public function site_do()
   { 
     $data=I("post.");
     $PATH=COMMON_PATH."Conf"."/";
     if(F2('site2',$data,$PATH)!==false){
        $this->success("修改成功");
     }else{
        $this->error("修改失败,无写入权限.");  
     }

   }




   
}